#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int num;
	float p1, p2, p3, p4;
	for(int i = 0; i < n; i++)
	{
		cin >> num;
		if(num <= 18 && num >= 0)
			p1++;
		else if(num <= 35 && num >= 19)
			p2++;
		else if(num <= 60 && num >= 36)
			p3++;
		else
			p4++;
	}
	printf("%.2f%%\n", p1 * 1.0 / n * 100);
	printf("%.2f%%\n", p2 * 1.0 / n * 100);
	printf("%.2f%%\n", p3 * 1.0 / n * 100);
	printf("%.2f%%\n", p4 * 1.0 / n * 100);
	return 0; 
 } 
